
       	  <?php form_head("admin/category_edit/".$row["category_id"],""); ?>
          <?php text_field("category_name","ชื่อ",$row,1); ?>
            <?php text_field("unit_name","หน่วยนับ",$row,1); ?>
         <?php 
		 $rows =  $this->db->get("meterial_base_categories")->result_array();
		 select_field("cat_base_id","หมวด",$rows,"cat_base_name",$row,0,"",1,"","",2); 
		 ?>
          <?php 
		 $rows =  $this->db->get("material_types")->result_array();
		 select_field("type_id","ชนิด",$rows,"type_name",$row,0,"",1,null,"",2); 
		 ?>
				 <div class="field">
         <div class="left">เป็นวัสดุใช้แล้วหมดไป:</div>
         
		 	<input style="width:20px;" type="checkbox" name="exhaustible[]" <?php echo set_checkbox('exhaustible[]', '1',((bool)$row["exhaustible"])); ?> value="1" /> 
		 </div>
          <?php form_footer(); ?>
          
   
       <a href="<?php echo site_url("admin/category_delete/".$row["category_id"]); ?>">ลบ</a>
       
       
       
       
       
       
       
      